Learn R Programming

oce (version 0.9-18)

[[,oce-method: Extract Something From an oce Object

Description

The named item is sought first in metadata, where an exact match to the name is required. If it is not present in the metadata slot, then a partial-name match is sought in the data slot.

Usage

## S3 method for class 'oce':
[[(x, i, j, ...)

Arguments

x
An oce object
i
The item to extract.
j
Optional additional information on the i item.
...
Optional additional information (ignored).

Details

To get information on the specialized variants of this function, type e.g. ?"[[,adv-method" for information on extracting data from an object of adv-class.

Examples

Run this code
data(ctd)
ctd[["longitude"]] # in metadata
head(ctd[["salinity"]]) # in data
data(section)
summary(section[["station", 1]])

Run the code above in your browser using DataLab